package com.bytedance.article.b.b;

public abstract class DependProvider<T> {
    private T instance;

    public DependProvider() {

    }

    public abstract T createDepend();

    public synchronized final T getInstance() {
        if (this.instance == null) {
            this.instance = this.createDepend();
        }
        return this.instance;
    }
}

